
Public Class SqlQueryData

    Public Property Rows As ObjectModel.ObservableCollection(Of QueryRow)
    Public Property Sorts As ObjectModel.ObservableCollection(Of QuerySort)
    Public Property Filters As ObjectModel.ObservableCollection(Of QueryFilter)
    Public Property Originalfilters As ObjectModel.ObservableCollection(Of QueryFilter)
    Public Property Sources As ObjectModel.ObservableCollection(Of QuerySource)
    Public Property Name As String

    Public Property SqlQueryText As String
    Public Property SqlQueryData As DataTable

    Private _inc As Integer

    Sub New()
        _inc += 1
        Name = "Query " & _inc
    End Sub


    Public Sub New(ByVal rows, ByVal sorts, ByVal filters, ByVal originalfilters, ByVal sources)
        _inc += 1
        Name = "Query " & _inc
        Me.Rows = rows
        Me.Sorts = sorts
        Me.Filters = filters
        Me.Originalfilters = originalfilters
        Me.Sources = sources
    End Sub
End Class
